package com.baba.vote.dto.request;

import com.baba.vote.pojo.VoteAct;
import com.baba.vote.pojo.VoteItem;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @author moxinHuoHuo
 * @create 2020/4/7 下午3:12
 */
@Data
public class VoteItemBo {

  @ApiModelProperty("选项内容")
  private String content;

  public VoteItem doForward(Integer actId) {
    VoteItem voteItem = new VoteItem();
    voteItem.setContent(content);
    voteItem.setSupportNum(0);
    voteItem.setVoteActId(actId);

    return voteItem;
  }

}
